package com.etc.entity;

import javax.persistence.Column;
import javax.persistence.Id;

/**
 * 收货地址
 * 
 * @author Administrator
 *
 */

public class Address {
	@Id
	@Column(name="adId")
	private Integer adId;// 收货信息编号
	@Column(name="uId")
	private Integer uId;// 用户编号
	@Column(name="adName")
	private String adName;// 收货名
	@Column(name="adTel")
	private String adTel;// 收货人号码
	@Column(name="adProvince")
	private String adProvince;// 省
	@Column(name="adCity")
	private String adCity;// 市
	@Column(name="adArea")
	private String adArea;// 区
	@Column(name="adDetil")
	private String adDetil;// 详细地址
	@Column(name="adState")
	private Integer adState;// 是否为默认地址

	public Address() {
		// TODO Auto-generated constructor stub
	}

	public Address(Integer adId, Integer uId, String adName, String adTel, String adProvince, String adCity,
			String adArea, String adDetil, Integer adState) {
		super();
		this.adId = adId;
		this.uId = uId;
		this.adName = adName;
		this.adTel = adTel;
		this.adProvince = adProvince;
		this.adCity = adCity;
		this.adArea = adArea;
		this.adDetil = adDetil;
		this.adState = adState;
	}

	public Integer getAdId() {
		return adId;
	}

	public void setAdId(Integer adId) {
		this.adId = adId;
	}

	public Integer getuId() {
		return uId;
	}

	public void setuId(Integer uId) {
		this.uId = uId;
	}

	public String getAdName() {
		return adName;
	}

	public void setAdName(String adName) {
		this.adName = adName;
	}

	public String getAdTel() {
		return adTel;
	}

	public void setAdTel(String adTel) {
		this.adTel = adTel;
	}

	public String getAdProvince() {
		return adProvince;
	}

	public void setAdProvince(String adProvince) {
		this.adProvince = adProvince;
	}

	public String getAdCity() {
		return adCity;
	}

	public void setAdCity(String adCity) {
		this.adCity = adCity;
	}

	public String getAdArea() {
		return adArea;
	}

	public void setAdArea(String adArea) {
		this.adArea = adArea;
	}

	public String getAdDetil() {
		return adDetil;
	}

	public void setAdDetil(String adDetil) {
		this.adDetil = adDetil;
	}

	public Integer getAdState() {
		return adState;
	}

	public void setAdState(Integer adState) {
		this.adState = adState;
	}

	@Override
	public String toString() {
		return "Address [adId=" + adId + ", uId=" + uId + ", adName=" + adName + ", adTel=" + adTel + ", adProvince="
				+ adProvince + ", adCity=" + adCity + ", adArea=" + adArea + ", adDetil=" + adDetil + ", adState="
				+ adState + "]";
	}

}
